<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<body>
<h2>Hello World!22</h2>
	<c:set var="ctxPath" value="${pageContext.request.contextPath}"/>
	<button id="postBtn" value="2">发起post请求</button>
	<script type="text/javascript" src="${ctxPath}/js/lib/jquery-3.1.1.js"></script>
	<script type="text/javascript">
		$(function(){
				$("#postBtn").click(function(){
					$.post{"${ctxPath}"+"/springmvc/post",{data1:222,data2:"we"},function(data){
						console.log(data);
					}};
				});			
		});
	</script>
</body>
</html>
